//package com.example.admin.bilibiliijkplayer;
//
//import android.os.Bundle;
//import android.support.v7.app.AppCompatActivity;
//import android.widget.ImageView;
//
//import com.bumptech.glide.Glide;
//import com.dou361.ijkplayer.listener.OnShowThumbnailListener;
//import com.dou361.ijkplayer.widget.PlayStateParams;
//import com.dou361.ijkplayer.widget.PlayerView;
//
//public class MainActivity extends AppCompatActivity {
//    PlayerView player;
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_main);
//        String url = "http://9890.vod.myqcloud.com/9890_9c1fa3e2aea011e59fc841df10c92278.f20.mp4";
//        player = new PlayerView(this)
//                .setTitle("什么")
//                .setScaleType(PlayStateParams.fitparent)
//                .hideMenu(true)
//                .forbidTouch(false)
//                .showThumbnail(new OnShowThumbnailListener() {
//                    @Override
//                    public void onShowThumbnail(ImageView ivThumbnail) {
//                        Glide.with(MainActivity.this)
//                                .load("http://pic2.nipic.com/20090413/406638_125424003_2.jpg")
//                                .placeholder(android.R.color.darker_gray)
//                                .error(android.R.color.darker_gray)
//                                .into(ivThumbnail);
//                    }
//                })
//                .setPlaySource(url)
//                .startPlay();
//
//    }
//}
